//
//  NovaWeekValueFormatter.swift
//  NovaRings
//
//  Created by 李然 on 2023/2/28.
//

import Foundation

class NovaWeekValueFormatter: NSObject, NovaXAxisValueFormatter {
    
    func string(at index: Int) -> String {
        let arr = [R.string.localizable.common_sunday(),
                   R.string.localizable.common_monday(),
                   R.string.localizable.common_tuesday(),
                   R.string.localizable.common_wednesday(),
                   R.string.localizable.common_thursday(),
                   R.string.localizable.common_friday(),
                   R.string.localizable.common_saturday()]
        guard arr.count > index else { return ""}
        return arr[index]
    }
}
